package com.yesido.moshi.seven.Segregation_geli;

/**
 * @author yesido
 * @description
 * @date 2023-06-11 23:49
 * @Version 8.3
 */
public class A {
    //A类通过Interface1，Interface2依赖(使用)B类，用到方法1,2,3
    public void depend1(Interface1 i) {
        i.operation1();
    }
    public void depend2(Interface2 i) {
        i.operation2();
    }
    public void depend3(Interface2 i) {
        i.operation3();
    }
}
